﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" StylesheetTheme="GlobleTheme" AutoEventWireup="true" CodeBehind="ContractQuery.aspx.cs" Inherits="Runda.CMS.Portal.ContractManage.ContractQuery" Title="Untitled Page" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <script src="../Content/global.js" type="text/javascript"></script>
<link href="../Content/global.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
     <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
   <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function OpenEditContract(ContractID) {
            openMyFullWin('ContractView.aspx?ContractID=' + ContractID, 'ContractView');
        }
      
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">

 <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="btnSearchBasic">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="panel1" LoadingPanelID="AjaxLoadingPanel"/> 
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="btnSearch">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="panel1" LoadingPanelID="AjaxLoadingPanel"/> 
                </UpdatedControls>
            </rad:AjaxSetting>
             <rad:AjaxSetting AjaxControlID="lnkbtnDelete">
                <UpdatedControls> 
                    <rad:AjaxUpdatedControl ControlID="panel1" LoadingPanelID="AjaxLoadingPanel"/>
                </UpdatedControls>
            </rad:AjaxSetting>
        </AjaxSettings>
    </rad:RadAjaxManager>
    <rad:AjaxLoadingPanel runat="server" ID="AjaxLoadingPanel">
        <img src="../Images/Loading.gif" />数据载入...
    </rad:AjaxLoadingPanel>
    
<div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0" width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60"> 
                                <tr><td style="color:#ffffff"><b>快速查询</b>（<span id="__appFind_QueryType">普通</span>）</td><td class="icMenu mnuRight" noWrap><span id="__appFind_switch_standard" class="menu" title="普通查询" onclick='appFind.showQueryPart("__appFind_tbQuery1")' tabIndex="0"><IMG src="/images/ico-advance.gif" align=absbottom><span style="color:#ffffff">普通</span></span></td><td class="icMenu mnuRight" noWrap><span id="__appFind_switch_advanced" class="menu" title="高级查询" onclick='appFind.showQueryPart("__appFind_tbQuery2")' tabIndex="1"><IMG src="/Images/ico-advance.gif" align=absbottom><span style="color:#ffffff">高级</span></span></td></tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                    <table id="__appFind_tbQuery1" style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%"><col width="60" align=center><col width="90"><col width="55" align=center><col><col width="90" style="padding-left:10px"><tr><td>查找按 </td><td>合同编号</td><td></td><td><asp:TextBox ID="txtContractCodeBasic" runat="server" Width="400px" CssClass="input"></asp:TextBox></td><td>    <asp:Button ID="btnSearchBasic" runat="server" Text="查找" CssClass="button" onclick="btnSearch_Click"/></td></tr></table>
                     <table id="__appFind_tbQuery2" style="display:none; TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" cellSpacing="0" cellPadding="0" width="100%">
                          <colgroup>
                            <col width="80">
                            <col>
                            <col width="80">
                            <col>
                            </colgroup>
                            <tr><td>客户名称</td><td><asp:TextBox ID="txtCumtomerName" runat="server" Width="400px" CssClass="input"></asp:TextBox></td><td>器械名称</td><td><asp:TextBox ID="txtInstrumentName" runat="server" CssClass="input" Width="400px"></asp:TextBox></td></tr>
                            <tr><td colspan="4" align="right">
                                <asp:Button ID="btnSearch" runat="server" Text="查找" CssClass="button" 
                                    onclick="btnSearch_Click"/></td></tr>
                        </table>
                    </td>
                </tr>
            </tbody>
    </table>            
</div>

 <div class="Container">         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>合同列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                        <span class="menu" tabindex="0" menu="appGridMenu_mainmnu">操作<img src="../Content/Grid/mnuDown.gif">
                            <table id="appGridMenu_mainmnu" class="mnuList" cellspacing="0" cellpadding="3">
                                <colgroup>
                                    <col class="mnuLeft">
                                    <col class="mnuItm">
                                    <col align="right" width="20">
                                    <tbody>
                                        <tr tabindex="0">
                                            <td>
                                            </td>
                                            <td colspan="2" nowrap> 
                                            </td>
                                        </tr>
                                    </tbody>
                            </table>
                        </span>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                      
                    </td>
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
            <asp:Panel runat="server" ID="panel1">
             <asp:Repeater ID="RepeaterContract" runat="server" 
             onitemcommand="RepeaterContract_ItemCommand" 
             onitemdatabound="RepeaterContract_ItemDataBound">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">合同编号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                      <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">合同类型</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">申请日期</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">签约日期</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">合同条款</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                      <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">合同状态</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                      <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">下一级审批人</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" ondblclick="OpenEditContract('<%#Eval("ContractID") %>')" onclick="handleClick()" oid='<%# Eval("ContractID")%>'>
                    <td><%#Eval("ContractCode")%></td> 
                    <td><asp:Label ID="lblContractType" runat="server" Text="Label"></asp:Label></td> 
                    <td><%#Eval("ContractApplyDate")%></td> 
                    <td><%#Eval("ContractEstimateSignDate")%></td> 
                    <td><%#Eval("ContractStatement")%></td> 
                    <td><%#GetStatusText(Convert.ToInt32(Eval("Status")))%></td> 
                    <td><%#Eval("NextCheckers")%></td> 
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate> 
             </asp:Repeater>    
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator"  
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" 
             onpagechanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>  
                  </asp:Panel>  
         </div>
</asp:Content>
